package com.hzjy.api.beans;

import com.hzjy.common.annotation.Excel;
import com.hzjy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 广告位对象 hzjy_advertising
 *
 * @author hzjy
 * @date 2020-09-22
 */
public class HzjyAdvertising extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String img;

    /**
     * 链接
     */
    @Excel(name = "链接")
    private String url;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    @Excel(name = "状态【0：不展示，1展示】")
    private Integer state;

    @Excel(name = "展示顺序")
    private Integer sort;

    //页码
    private Integer currentPage;

    //每页显示条数
    private Integer size;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setContent(String
                    content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("img", getImg())
                .append("url", getUrl())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .append("state",getState())
                .append("sort",getSort())
                .toString();
    }
}
